import request from '@/utils/request'
// 根据id查询仓库
export const findOneWarehouse = (params: string) =>
  request({
    url: '/warehouse/' + params,
    method: 'get'
  })
// 新增仓库
export const addWarehouse = (params: any) =>
  request({
    url: '/warehouse',
    method: 'post',
    data: { ...params }
  })

// 修改仓库
export const updateWarehouse = (params: any) =>
  request({
    url: '/warehouse',
    method: 'put',
    data: { ...params }
  })
